<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>IRremoteESP8266: src/ir_Sony.cpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">IRremoteESP8266
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">ir_Sony.cpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Support for Sony SIRC(Serial Infra-Red Control) protocols. Sony originally added from <a href="https://github.com/shirriff/Arduino-IRremote/">https://github.com/shirriff/Arduino-IRremote/</a> Updates from marcosamarinho.  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a7ced75a5e9f06f5c68132665d27e01b8"><td class="memItemLeft" align="right" valign="top">const uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ir__Sony_8cpp.html#a7ced75a5e9f06f5c68132665d27e01b8">kSonyTick</a> = 200</td></tr>
<tr class="separator:a7ced75a5e9f06f5c68132665d27e01b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a89abc5f0556f38d462202d1de78cbddb"><td class="memItemLeft" align="right" valign="top">const uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ir__Sony_8cpp.html#a89abc5f0556f38d462202d1de78cbddb">kSonyHdrMarkTicks</a> = 12</td></tr>
<tr class="separator:a89abc5f0556f38d462202d1de78cbddb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afac5a232c82e81ac257ddfc94aa4f379"><td class="memItemLeft" align="right" valign="top">const uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ir__Sony_8cpp.html#afac5a232c82e81ac257ddfc94aa4f379">kSonyHdrMark</a> = <a class="el" href="ir__Sony_8cpp.html#a89abc5f0556f38d462202d1de78cbddb">kSonyHdrMarkTicks</a> * <a class="el" href="ir__Sony_8cpp.html#a7ced75a5e9f06f5c68132665d27e01b8">kSonyTick</a></td></tr>
<tr class="separator:afac5a232c82e81ac257ddfc94aa4f379"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a80dccfab869821cadaf02df664d91eda"><td class="memItemLeft" align="right" valign="top">const uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ir__Sony_8cpp.html#a80dccfab869821cadaf02df664d91eda">kSonySpaceTicks</a> = 3</td></tr>
<tr class="separator:a80dccfab869821cadaf02df664d91eda"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad09a9eb0dc0b809cea0d0a2a8ff6b9fb"><td class="memItemLeft" align="right" valign="top">const uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ir__Sony_8cpp.html#ad09a9eb0dc0b809cea0d0a2a8ff6b9fb">kSonySpace</a> = <a class="el" href="ir__Sony_8cpp.html#a80dccfab869821cadaf02df664d91eda">kSonySpaceTicks</a> * <a class="el" href="ir__Sony_8cpp.html#a7ced75a5e9f06f5c68132665d27e01b8">kSonyTick</a></td></tr>
<tr class="separator:ad09a9eb0dc0b809cea0d0a2a8ff6b9fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad41c0d0496661c2e066056de6974bfe9"><td class="memItemLeft" align="right" valign="top">const uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ir__Sony_8cpp.html#ad41c0d0496661c2e066056de6974bfe9">kSonyOneMarkTicks</a> = 6</td></tr>
<tr class="separator:ad41c0d0496661c2e066056de6974bfe9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a490e7ca2b0f81848ae42eb57d0023d13"><td class="memItemLeft" align="right" valign="top">const uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ir__Sony_8cpp.html#a490e7ca2b0f81848ae42eb57d0023d13">kSonyOneMark</a> = <a class="el" href="ir__Sony_8cpp.html#ad41c0d0496661c2e066056de6974bfe9">kSonyOneMarkTicks</a> * <a class="el" href="ir__Sony_8cpp.html#a7ced75a5e9f06f5c68132665d27e01b8">kSonyTick</a></td></tr>
<tr class="separator:a490e7ca2b0f81848ae42eb57d0023d13"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a542aed17f98a11ca89456eec507a5225"><td class="memItemLeft" align="right" valign="top">const uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ir__Sony_8cpp.html#a542aed17f98a11ca89456eec507a5225">kSonyZeroMarkTicks</a> = 3</td></tr>
<tr class="separator:a542aed17f98a11ca89456eec507a5225"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7808995a9d2755681f1461d578d5480b"><td class="memItemLeft" align="right" valign="top">const uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ir__Sony_8cpp.html#a7808995a9d2755681f1461d578d5480b">kSonyZeroMark</a> = <a class="el" href="ir__Sony_8cpp.html#a542aed17f98a11ca89456eec507a5225">kSonyZeroMarkTicks</a> * <a class="el" href="ir__Sony_8cpp.html#a7ced75a5e9f06f5c68132665d27e01b8">kSonyTick</a></td></tr>
<tr class="separator:a7808995a9d2755681f1461d578d5480b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a7f67ba27e03c35d5df35a2a14a1e19"><td class="memItemLeft" align="right" valign="top">const uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ir__Sony_8cpp.html#a0a7f67ba27e03c35d5df35a2a14a1e19">kSonyRptLengthTicks</a> = 225</td></tr>
<tr class="separator:a0a7f67ba27e03c35d5df35a2a14a1e19"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a24578b92cf53caa48fa3660f16ec90ec"><td class="memItemLeft" align="right" valign="top">const uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ir__Sony_8cpp.html#a24578b92cf53caa48fa3660f16ec90ec">kSonyRptLength</a> = <a class="el" href="ir__Sony_8cpp.html#a0a7f67ba27e03c35d5df35a2a14a1e19">kSonyRptLengthTicks</a> * <a class="el" href="ir__Sony_8cpp.html#a7ced75a5e9f06f5c68132665d27e01b8">kSonyTick</a></td></tr>
<tr class="separator:a24578b92cf53caa48fa3660f16ec90ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a150d62f71f79295153bac4694bae0aa3"><td class="memItemLeft" align="right" valign="top">const uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ir__Sony_8cpp.html#a150d62f71f79295153bac4694bae0aa3">kSonyMinGapTicks</a> = 50</td></tr>
<tr class="separator:a150d62f71f79295153bac4694bae0aa3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abfe3a5e1fa2a38ee556326b1ea0e7e11"><td class="memItemLeft" align="right" valign="top">const uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ir__Sony_8cpp.html#abfe3a5e1fa2a38ee556326b1ea0e7e11">kSonyMinGap</a> = <a class="el" href="ir__Sony_8cpp.html#a150d62f71f79295153bac4694bae0aa3">kSonyMinGapTicks</a> * <a class="el" href="ir__Sony_8cpp.html#a7ced75a5e9f06f5c68132665d27e01b8">kSonyTick</a></td></tr>
<tr class="separator:abfe3a5e1fa2a38ee556326b1ea0e7e11"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e5b14c45909411d160e051f0bc7c63d"><td class="memItemLeft" align="right" valign="top">const uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ir__Sony_8cpp.html#a5e5b14c45909411d160e051f0bc7c63d">kSonyStdFreq</a> = 40000</td></tr>
<tr class="separator:a5e5b14c45909411d160e051f0bc7c63d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a05912a15a9a6a4a78416600adc7e526b"><td class="memItemLeft" align="right" valign="top">const uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ir__Sony_8cpp.html#a05912a15a9a6a4a78416600adc7e526b">kSonyAltFreq</a> = 38000</td></tr>
<tr class="separator:a05912a15a9a6a4a78416600adc7e526b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Support for Sony SIRC(Serial Infra-Red Control) protocols. Sony originally added from <a href="https://github.com/shirriff/Arduino-IRremote/">https://github.com/shirriff/Arduino-IRremote/</a> Updates from marcosamarinho. </p>
<dl class="section see"><dt>See also</dt><dd><a href="http://www.sbprojects.net/knowledge/ir/sirc.php">http://www.sbprojects.net/knowledge/ir/sirc.php</a> </dd>
<dd>
<a href="https://github.com/crankyoldgit/IRremoteESP8266/issues/1018">https://github.com/crankyoldgit/IRremoteESP8266/issues/1018</a> </dd></dl>
</div><h2 class="groupheader">Variable Documentation</h2>
<a id="a05912a15a9a6a4a78416600adc7e526b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a05912a15a9a6a4a78416600adc7e526b">&#9670;&nbsp;</a></span>kSonyAltFreq</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const uint16_t kSonyAltFreq = 38000</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="afac5a232c82e81ac257ddfc94aa4f379"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afac5a232c82e81ac257ddfc94aa4f379">&#9670;&nbsp;</a></span>kSonyHdrMark</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const uint16_t kSonyHdrMark = <a class="el" href="ir__Sony_8cpp.html#a89abc5f0556f38d462202d1de78cbddb">kSonyHdrMarkTicks</a> * <a class="el" href="ir__Sony_8cpp.html#a7ced75a5e9f06f5c68132665d27e01b8">kSonyTick</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a89abc5f0556f38d462202d1de78cbddb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a89abc5f0556f38d462202d1de78cbddb">&#9670;&nbsp;</a></span>kSonyHdrMarkTicks</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const uint16_t kSonyHdrMarkTicks = 12</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="abfe3a5e1fa2a38ee556326b1ea0e7e11"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abfe3a5e1fa2a38ee556326b1ea0e7e11">&#9670;&nbsp;</a></span>kSonyMinGap</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const uint16_t kSonyMinGap = <a class="el" href="ir__Sony_8cpp.html#a150d62f71f79295153bac4694bae0aa3">kSonyMinGapTicks</a> * <a class="el" href="ir__Sony_8cpp.html#a7ced75a5e9f06f5c68132665d27e01b8">kSonyTick</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a150d62f71f79295153bac4694bae0aa3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a150d62f71f79295153bac4694bae0aa3">&#9670;&nbsp;</a></span>kSonyMinGapTicks</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const uint16_t kSonyMinGapTicks = 50</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a490e7ca2b0f81848ae42eb57d0023d13"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a490e7ca2b0f81848ae42eb57d0023d13">&#9670;&nbsp;</a></span>kSonyOneMark</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const uint16_t kSonyOneMark = <a class="el" href="ir__Sony_8cpp.html#ad41c0d0496661c2e066056de6974bfe9">kSonyOneMarkTicks</a> * <a class="el" href="ir__Sony_8cpp.html#a7ced75a5e9f06f5c68132665d27e01b8">kSonyTick</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ad41c0d0496661c2e066056de6974bfe9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad41c0d0496661c2e066056de6974bfe9">&#9670;&nbsp;</a></span>kSonyOneMarkTicks</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const uint16_t kSonyOneMarkTicks = 6</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a24578b92cf53caa48fa3660f16ec90ec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a24578b92cf53caa48fa3660f16ec90ec">&#9670;&nbsp;</a></span>kSonyRptLength</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const uint16_t kSonyRptLength = <a class="el" href="ir__Sony_8cpp.html#a0a7f67ba27e03c35d5df35a2a14a1e19">kSonyRptLengthTicks</a> * <a class="el" href="ir__Sony_8cpp.html#a7ced75a5e9f06f5c68132665d27e01b8">kSonyTick</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a0a7f67ba27e03c35d5df35a2a14a1e19"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0a7f67ba27e03c35d5df35a2a14a1e19">&#9670;&nbsp;</a></span>kSonyRptLengthTicks</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const uint16_t kSonyRptLengthTicks = 225</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ad09a9eb0dc0b809cea0d0a2a8ff6b9fb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad09a9eb0dc0b809cea0d0a2a8ff6b9fb">&#9670;&nbsp;</a></span>kSonySpace</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const uint16_t kSonySpace = <a class="el" href="ir__Sony_8cpp.html#a80dccfab869821cadaf02df664d91eda">kSonySpaceTicks</a> * <a class="el" href="ir__Sony_8cpp.html#a7ced75a5e9f06f5c68132665d27e01b8">kSonyTick</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a80dccfab869821cadaf02df664d91eda"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a80dccfab869821cadaf02df664d91eda">&#9670;&nbsp;</a></span>kSonySpaceTicks</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const uint16_t kSonySpaceTicks = 3</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a5e5b14c45909411d160e051f0bc7c63d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5e5b14c45909411d160e051f0bc7c63d">&#9670;&nbsp;</a></span>kSonyStdFreq</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const uint16_t kSonyStdFreq = 40000</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a7ced75a5e9f06f5c68132665d27e01b8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7ced75a5e9f06f5c68132665d27e01b8">&#9670;&nbsp;</a></span>kSonyTick</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const uint16_t kSonyTick = 200</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a7808995a9d2755681f1461d578d5480b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7808995a9d2755681f1461d578d5480b">&#9670;&nbsp;</a></span>kSonyZeroMark</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const uint16_t kSonyZeroMark = <a class="el" href="ir__Sony_8cpp.html#a542aed17f98a11ca89456eec507a5225">kSonyZeroMarkTicks</a> * <a class="el" href="ir__Sony_8cpp.html#a7ced75a5e9f06f5c68132665d27e01b8">kSonyTick</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a542aed17f98a11ca89456eec507a5225"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a542aed17f98a11ca89456eec507a5225">&#9670;&nbsp;</a></span>kSonyZeroMarkTicks</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const uint16_t kSonyZeroMarkTicks = 3</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
